package com.sysware;

import javax.servlet.ServletException;

import org.apache.catalina.LifecycleException;
import org.apache.catalina.connector.Connector;
import org.apache.catalina.startup.Tomcat;

public class Launcher {

	public static void main(String[] args) {
		Tomcat tomcat = new Tomcat();
		try {
			Connector connector = tomcat.getConnector();
			connector.setMaxHeaderCount(20000);
			connector.setPort(80);
			connector.setEnableLookups(false);

			tomcat.setConnector(connector);
			tomcat.addWebapp("", "D:\\develop\\workspace\\DemoWeb\\WebContent");

			tomcat.start();
			
			tomcat.stop();
		} catch (ServletException e) {
			e.printStackTrace();
		} catch (LifecycleException e) {
			e.printStackTrace();
		}

	}

}
